package com.ldatum.crm.action.admin;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts2.convention.annotation.ParentPackage;

import com.ldatum.crm.domain.Inventory;
import com.ldatum.crm.service.InventoryService;
import com.ldatum.crm.serviceImpl.InventoryServiceImpl;
@ParentPackage("admin")
public class InventoryAction extends BaseAction {

	private static final long serialVersionUID = 1L;

	private InventoryService inventoryService = new InventoryServiceImpl();
	
	private List<Inventory> inventoryList =new ArrayList<Inventory>();
	
	public String list() throws Exception{
		inventoryList = inventoryService.list();
		return "listInventory";
	}
	
	public List<Inventory> getInventoryList() {
		return inventoryList;
	}
	public void setInventoryList(List<Inventory> inventoryList) {
		this.inventoryList = inventoryList;
	}

	
	
	/**
	 * 
	 * 描述 :库存列表
	 * @return
	 * @throws Exception 
	 */
	
}
